package com.feifan.oa.domain;

import com.feifan.common.annotation.Excel;
import com.feifan.common.core.domain.BaseEntity;
import com.feifan.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
/**
 * 人脸识别对象 tb_face
 *
 * @author 非凡
 * @date 2020-09-21
 */
public class Face extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private SysUser sysUser;

    /** 人脸唯一id */
    @Excel(name = "人脸唯一id")
    private String faceToken;

    /** 组名称 */
    @Excel(name = "组名称")
    private String groupId;

    /** 用户真实姓名 */
    @Excel(name = "用户真实姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCardNumber;

    /** 人脸创建时间 */
    @Excel(name = "人脸创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setsysUser(SysUser sysUser)
    {
        this.sysUser = sysUser;
    }

    public SysUser getsysUser()
    {
        return sysUser;
    }
    public void setFaceToken(String faceToken)
    {
        this.faceToken = faceToken;
    }

    public String getFaceToken()
    {
        return faceToken;
    }
    public void setGroupId(String groupId)
    {
        this.groupId = groupId;
    }

    public String getGroupId()
    {
        return groupId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIdCardNumber(String idCardNumber)
    {
        this.idCardNumber = idCardNumber;
    }

    public String getIdCardNumber()
    {
        return idCardNumber;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sysUser", getsysUser())
                .append("faceToken", getFaceToken())
                .append("groupId", getGroupId())
                .append("name", getName())
                .append("idCardNumber", getIdCardNumber())
                .append("time", getTime())
                .toString();
    }
}
